﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace logic
{
    public class RandomGenerator : Generator
    {
        private Random rand = new Random((int) DateTime.Now.Ticks);

        public override int getNumber(bool[] tavola)
        {
            int ris;

            while (tavola[(ris = rand.Next(90))]) ;
            return ris;
        }
    }
}
